<SCRIPT src="/js/add_release.js" type="text/javascript"></SCRIPT>
<FORM method="post" enctype="multipart/form-data" action="/?cat=commit_release">

    <TABLE class="commit_table" width="75%" align="center" cellspacing="5" cellpadding="0">
	<TR>
	    <TD width="100%" class="commit_caption">
		<TABLE border="0">
		    <TR>
			<TD  nowrap align="left" width="100%">
			    <!--TPL:"Add new release to database"|gettext-->
			</TD>
		    </TR>
		</TABLE>
	    </TD>
	</TR>
	<TR>
	    <TD width="100%" class="commit_desc" align="center">
                <P><!--TPL:"Please don't abuse."|gettext--></P>
                <P><!--TPL:"Make sure record does not exist in database."|gettext--></P>
	    </TD>
	</TR>
	<TR>
	    <TD width="100%">

<TABLE width="85%" border="0" align="center" cellspacing="0" cellpadding="5">
    <TR>
	<TD class="commit_label" nowrap align="right" width="35%">
	    <!--TPL:"Release name"|gettext-->:
	</TD>
	<TD nowrap align="left" height="32" width="65%">
	    <input name="releasename" id="releasename" class="flat" type="text" size="30" maxlength="128">
	    <span class="validation" id="validateReleasename"></span>
	</TD>
    </TR>

    <TR>
        <TD class="commit_label" nowrap align="right">
            <small><!--TPL:"Check if TBA"|gettext-->:</small>
        </TD>
        <TD nowrap align="left">
            <INPUT type="checkbox" name="tba" id="tba" onchange="setTBA();">
        </TD>
    </TR>

    <TR>
	<TD class="commit_label" nowrap align="right">
	    <!--TPL:"Artist name"|gettext-->:
	</TD>
	<TD nowrap align="left">
	    <input name="artistname" id="artistname" class="flat" type="text" size="30" maxlength="128">
	    <span class="validation" id="validateArtistname"></span>
	</TD>
    </TR>

    <TR>
	<TD class="commit_label" nowrap align="right">
	    <!--TPL:"Release date"|gettext-->:<BR>
	    <span class="label_desc"><!--TPL:"yyyy-mm-dd"|gettext--></span>
	</TD>
	<TD nowrap align="left">
	    <input name="releasedate" id="releasedate" class="flat" type="text" size="10" maxlength="10">
	    <span class="validation" id="validateReleasedate"></span>
	</TD>
    </TR>

    <TR>
	<TD class="commit_label" nowrap align="right">
	    <!--TPL:"Choose recording label"|gettext-->:<BR>
            <span class="label_desc"><!--TPL:"e.g Fearless Records"|gettext--></span>
	</TD>
	<TD nowrap align="left">
		<input type="text" name="labelname" id="labelname" class="flat" size="30" maxlength="128">
		<span class="validation" id="validateLabelname"></span>
	</TD>
    </TR>

    <TR>
	<TD class="commit_label" nowrap align="right">
	    <!--TPL:"Record type"|gettext-->:
	</TD>
	<TD nowrap align="left">
	    <select name="recordtype" id="recordtype" class="flat">
		<!--TPL:foreach name=outer from=$record_types item=item-->
                <option value="<!--TPL:$item.id-->"><!--TPL:$item.name--></option>
		<!--TPL:/foreach-->
	    </select>
	</TD>
    </TR>

    <TR>
	<TD class="commit_label" nowrap align="right">
	    <small><!--TPL:"Track count"|gettext-->:</small>
	</TD>
	<TD nowrap align="left">
	    <input name="trackcount" id="trackcount" class="flat" type="text" size="10" maxlength="4">
	    <span class="validation" id="validateTrackcount"></span>
	</TD>
    </TR>

    <TR>
	<TD class="commit_label" nowrap align="right">
	    <small><!--TPL:"Length"|gettext-->:</small><BR>
	    <span class="label_desc"><!--TPL:"mm:ss"|gettext--></span>
	</TD>
	<TD nowrap align="left">
	    <input name="length" id="length" class="flat" type="text" size="10" maxlength="7">
	    <span class="validation" id="validateLength"></span>
	</TD>
    </TR>
    <TR>
        <TD class="commit_label" nowrap align="right">
                <small><!--TPL:"Picture"|gettext-->:</small>
        </TD>
        <TD nowrap align="left">
                <input type="file" id="picture" name="picture" size="38">
                              <br>
                                <input class="flat" type="text" id="picture_url" name="picture_url" size="38">
        </TD>
    </TR>

    <TR>
	<TD nowrap align="right">

	</TD>
	<TD nowrap align="left">
	    <input type="submit" class="submit" value="<!--TPL:"Add release"|gettext-->" id="submit">
	</TD>
    </TR>

    <TR>
	<TD nowrap align="right">

	</TD>
	<TD nowrap align="left">
	    <span id="error" style="display:block" class="error">
	    </span>
	</TD>
    </TR>

</TABLE>

	    </TD>
	</TR>
    </TABLE>

</FORM>